package com.sjtu.rental.exception;

@SuppressWarnings("serial")
public class RegisterException extends RuntimeException {

	private String key;
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	private String exception;
	
	public String getException() {
		return exception;
	}

	public void setException(String exception) {
		this.exception = exception;
	}

	public RegisterException() {
		super();
	}
	
	public RegisterException(String key, String exception) {
		super(exception);
		setKey(key);
	}
}
